﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace UI
{
    public partial class GRZX : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["ziliao"].ToString().Trim() != "个人中心")
                {
                  DataTable dt=   BLL.ChaBLL.ChaZiLiao(Session["ziliao"].ToString());
                  this.Label1.Text = dt.Rows[0]["Name"].ToString().Trim();
                  this.Label2.Text = dt.Rows[0]["Name"].ToString().Trim();
                  this.Label3.Text = dt.Rows[0]["Phone"].ToString().Trim();
                  this.dizhi1.Text = dt.Rows[0]["Address1"].ToString().Trim();
                  //if (dt.Rows[0]["Address1"].ToString().Trim() != null && dt.Rows[0]["Address2"].ToString().Trim() != null)
                  //{
                      this.dizhi11.Text = dt.Rows[0]["Address1"].ToString().Trim();
                      this.dizhi2.Text = dt.Rows[0]["Address2"].ToString().Trim();
                  //}
                  //else
                  //{
                      
                  //    this.dizhi11.Text = "点击填写地址1";
                  //    this.dizhi2.Text = "点击填写地址2";
                  //}
                }
            }

        }
    }
}